import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
        {
            title: '物品数量',
            dataIndex: 'goodsNum',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'isVipCard',
            width: 200,
        },
        {
            title: '所属销售',
            dataIndex: 'employeeId',
            width: 200,
        },
        {
            title: '来源类型',
            dataIndex: 'sourceType',
            width: 200,
        },
        {
            title: '开卡地',
            dataIndex: 'airportId',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'businessId',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'goodsId',
            width: 200,
        },
        {
            title: '用户Id',
            dataIndex: 'accountId',
            width: 200,
        },
        {
            title: '支付方式',
            dataIndex: 'payType',
            width: 200,
        },
        {
            title: '线下支付方式',
            dataIndex: 'paywayId',
            width: 200,
        },
        {
            title: '支付金额',
            dataIndex: 'payAmount',
            width: 200,
        },
        {
            title: '1有效，2失效',
            dataIndex: 'achievementState',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'weChatId',
            width: 200,
        },
        {
            title: '是否删除',
            dataIndex: 'deleted',
            width: 200,
        },
        {
            title: '更新人',
            dataIndex: 'updateUser',
            width: 200,
        },
        {
            title: '更新时间',
            dataIndex: 'updateTime',
            width: 200,
        },
        {
            title: '创建人',
            dataIndex: 'createUser',
            width: 200,
        },
        {
            title: '创建时间',
            dataIndex: 'createTime',
            width: 200,
        },
];

export const searchFormSchema: FormSchema[] = [
];

export const formSchema: FormSchema[] = [
        {
            label: '物品数量',
            field: 'goodsNum',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'isVipCard',
            component: 'Input',
            required: true,
        },
        {
            label: '所属销售',
            field: 'employeeId',
            component: 'Input',
            required: true,
        },
        {
            label: '来源类型',
            field: 'sourceType',
            component: 'Input',
            required: true,
        },
        {
            label: '开卡地',
            field: 'airportId',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'businessId',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'goodsId',
            component: 'Input',
            required: true,
        },
        {
            label: '用户Id',
            field: 'accountId',
            component: 'Input',
            required: true,
        },
        {
            label: '支付方式',
            field: 'payType',
            component: 'Input',
            required: true,
        },
        {
            label: '线下支付方式',
            field: 'paywayId',
            component: 'Input',
            required: true,
        },
        {
            label: '支付金额',
            field: 'payAmount',
            component: 'Input',
            required: true,
        },
        {
            label: '1有效，2失效',
            field: 'achievementState',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'weChatId',
            component: 'Input',
            required: true,
        },
        {
            label: '是否删除',
            field: 'deleted',
            component: 'Input',
            required: true,
        },
        {
            label: '更新人',
            field: 'updateUser',
            component: 'Input',
            required: true,
        },
        {
            label: '更新时间',
            field: 'updateTime',
            component: 'Input',
            required: true,
        },
        {
            label: '创建人',
            field: 'createUser',
            component: 'Input',
            required: true,
        },
        {
            label: '创建时间',
            field: 'createTime',
            component: 'Input',
            required: true,
        },
];
